﻿@model Marketplace.Engine.Model.SaleProperty

@{
    ViewBag.Title = "EditSaleProperty";
}

<h2>EditSaleProperty</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>SaleProperty</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.HasMortgage)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HasMortgage)
            @Html.ValidationMessageFor(model => model.HasMortgage)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MortgageAmount)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MortgageAmount)
            @Html.ValidationMessageFor(model => model.MortgageAmount)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MortgageRate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MortgageRate)
            @Html.ValidationMessageFor(model => model.MortgageRate)
        </div>

        @Html.HiddenFor(model => model.Id)

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.No)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.No)
            @Html.ValidationMessageFor(model => model.No)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Address)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Address)
            @Html.ValidationMessageFor(model => model.Address)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PostCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PostCode)
            @Html.ValidationMessageFor(model => model.PostCode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Tel)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Tel)
            @Html.ValidationMessageFor(model => model.Tel)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Price)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Price)
            @Html.ValidationMessageFor(model => model.Price)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Deposit)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Deposit)
            @Html.ValidationMessageFor(model => model.Deposit)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PropertyType)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PropertyType)
            @Html.ValidationMessageFor(model => model.PropertyType)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BedroomCount)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BedroomCount)
            @Html.ValidationMessageFor(model => model.BedroomCount)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HasCentralHeating)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HasCentralHeating)
            @Html.ValidationMessageFor(model => model.HasCentralHeating)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HasGarden)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HasGarden)
            @Html.ValidationMessageFor(model => model.HasGarden)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsNew)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsNew)
            @Html.ValidationMessageFor(model => model.IsNew)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.City)
            @Html.ValidationMessageFor(model => model.City)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.County)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.County)
            @Html.ValidationMessageFor(model => model.County)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AvailableDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AvailableDate)
            @Html.ValidationMessageFor(model => model.AvailableDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RegisterationDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RegisterationDate)
            @Html.ValidationMessageFor(model => model.RegisterationDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Status)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Status)
            @Html.ValidationMessageFor(model => model.Status)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.OwnerId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.OwnerId)
            @Html.ValidationMessageFor(model => model.OwnerId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
